package com.itheima.service;

import com.itheima.pojo.Emp;
import com.itheima.pojo.EmpQueryParam;
import com.itheima.pojo.LoginInfo;
import com.itheima.pojo.PageResult;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {

    //分页查询
    //PageResult<Emp> page(Integer page, Integer pageSize, String name,Integer gender, LocalDate begin, LocalDate end);

    PageResult<Emp> page(EmpQueryParam empQueryParam);

    //新增员工
    void save(Emp emp);

    //删除员工
    void delete(List<Integer> ids);

    //查询回显
    Emp getInfo(Integer id);

    //修改员工
    void update(Emp emp);

    //查询全部员工
    List<Emp> getAllEmp();

    //员工登录
    LoginInfo login(Emp emp);
}
